|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--java.lang.Number | +--java.lang.Integer
An instance ``wraps'' (or contains) a value of primitive type int.
| Field Summary | |
static int |
MIN_VALUE
The smallest value of type int. |
| Constructor Summary | |
Integer(int v)
An object that wraps value v. |
|
| Method Summary | |
int |
compareTo(Integer i)
= a positive integer, 0, or a negative integer, depending on whether this Integer is greater than, equal to, or less than i. |
int |
intValue()
= the value of this Integer. |
java.lang.String |
toString()
= a String representation of this Integer. |
| Methods inherited from class java.lang.Number |
byteValue, doubleValue, floatValue, longValue, shortValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
compareTo |
| Field Detail |
public static final int MIN_VALUE
| Constructor Detail |
public Integer(int v)
| Method Detail |
public int intValue()
intValue in class java.lang.Numberpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(Integer i)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||